from typing import Union, Any
from datetime import datetime
from fastapi import Depends, HTTPException, status
from fastapi.security import OAuth2PasswordBearer
from config import Config

from jose import jwt
from pydantic import ValidationError
from schemas import UserQuery,TokenPayload
# from app.schemas import TokenPayload, SystemUser
# from replit import db
from utility.security import(
    check_jwt_token,
)

reuseable_oauth = OAuth2PasswordBearer(
    tokenUrl="/login",
    scheme_name="JWT"
)

